package com.egu.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.egu.model.CustomerCare;
import com.egu.model.NoticeInfo;
import com.egu.service.CustomerCareService;
import com.egu.service.NoticeInfoService;
import com.egu.service.WorkbenchService;

@Service
public class WorkbenchServiceImpl implements WorkbenchService {


	@Autowired
	CustomerCareService customerCareService;
	
	@Autowired
	NoticeInfoService noticeInfoService;
	
	@Override
	public Map<String,Object> getWorkbenchUI(){
		List<CustomerCare> list1=customerCareService.getRecentList();
		List<NoticeInfo> list2=noticeInfoService.getRecentList();
		Map<String,Object> map = new HashMap<>();
		map.put("customerCareList", list1);
		map.put("noticeInfoList", list2);
		return map;
	}
	
	

	
}
